home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
serien
/
purity
/
nr.11
/
hspascal-programme
/
graphdemo.p
< prev
next >
Wrap
Text File
|
1995-04-21
|
971b
|
54 lines
Program Demo1;
Uses Graph, Crt, UtilUnit;
Var Driver, Mode: Integer;
t: Integer;
Procedure Wait;
begin
ASM
@L: btst #6, $BFE001
bne @L
End;
End;
begin
Driver:=DETECT;
InitGraph(Driver, Mode, '');
SetColor(1);
t:=0;
MoveTo(10,10);
OutText(' --- Bitte eine Taste drücken ---');
Repeat
t:=t+1;
SetColor(Random(GetMaxColor)+1);
Line(50,50,random(GetMaxX),random(GetMaxY));
if t=10 then begin
t:=0;
SetColor(1);
MoveTo(10,10);
OutText(' --- Bitte eine Taste drücken ---');
end;
Until KeyPressed;
SetColor(0);
MoveTo(10,10);
OutText(' --- Bitte eine Taste drücken ---');
SetColor(1);
MoveTo(50,50);
OutText(' Wir befinden uns in Modus Nr.'+Int2Str(Driver));
MoveTo(50,70);
OutText(' Die Anzahl der Farben ist '+Int2Str(GetMaxColor));
MoveTo(50,90);
OutText(' Die Auflösung ist '+Int2Str(GetMaxX)+'x'+Int2Str(GetMaxY));
MoveTo(50,120);
OutText(' Bitte die linke Maustaste drücken !!');
Wait;
CloseGraph;
end.